javascript:
function%20V(){
return%201;
}
window.onerror=V;
function%20Z(){
a=1;
b=1;
c='{unit}%20({coords})%20{player}%20F{distance}%20{sent}';
p=['Scout','LC','HC','Axe','Sword','Ram','***Noble***'];
d=document;
function%20J(e){return/\s\(((\d+)\|(\d+))\)\sK/i.exec(e);}
function%20K(e){f=parseInt(e,10);return(f>9?f:'0'+f);}
function%20L(g,e){return%20g.getElementsByTagName(e);}
function%20N(g){return%20g.innerHTML;}function%20M(g){return%20N(L(g,'a')[0]);}
function%20O(){return%20k.insertRow(E++);}
function%20W(f){return%20B.insertCell(f);}
function%20P(g,e){g.innerHTML=e;return%20g;}
function%20X(e){C=B.appendChild(d.createElement('th'));return%20P(C,e);}
function%20Y(f){return%20K(f/U)+':'+K(f%(U)/T%20)+':'+K(f%T);}
U=3600;
T=60;
R='table';
S='width';
s=L(document,R);
for(j=0;j<s.length;j++){
s[j].removeAttribute(S);
if(s[j].className=='main'){
s=L(L(s[j],'tbody')[0],R);break;
}}
D=0;
for(j=0;j<s.length;j++){
s[j].removeAttribute(S);
if(s[j].className='vis'){k=s[j];
if(t=k.rows)D=t.length;break;
}}
for(E=0;E<D;E++){
l=t[E];m=(u=l.cells)?u.length:0;
if(m){u[m-1].colSpan=5-m;
if(N(u[0])=='Arrival:')Q=new%20Date(N(u[1]).replace(/<.*/i,''));
else{if(N(u[0])=='Arrival%20in:')v=N(u[1]).match(/\d+/ig);}
if(E==1)G=M(u[2]);
if(E==2)w=J(M(u[1]));
if(E==4)x=J(M(u[1]));
}}
y=v[0]*U+v[1]*T+v[2]*1;
n=w[2]-x[2];o=w[3]-x[3];
F=Math.sqrt(n*n+o*o);
H=F.toFixed(2);
E=D-2;s=L(k,'input');
i=s[1];
i.setAttribute("onClick", i.getAttribute("onClick")+";location.href='/game.php?screen=overview_villages&mode=incomings&type=all&subtype=attacks'");
h=s[0];
h.size=T;
B=O();
P(W(0),'Distance:').colSpan=2;
P(W(1),H+'%20Fields').colSpan=2;B=O();
X('Unit');
X('Sent');
X('Duration');
X('Name%20to');
c=c.replace(/\{coords\}/i,w[1]).replace(/\{distance\}/i,H).replace(/\{player\}/i,G);
for(j%20in%20p){
z=Math.round([9,10,11,18,22,30,35][j]*T*F/a/b);
A=z-y;
if(A>0){
I=Y(z);
B=O();
P(W(0),p[j]);
P(W(1),A<T&&'just%20now'||A<U&&Math.floor(A/T)+'%20mins%20ago'||Y(A)+'%20ago');
P(W(2),I);
C=W(3);
q=C.appendChild(i.cloneNode(1));
r=C.appendChild(h.cloneNode(1));
r.id='I'+j;
r.value=c.replace(/\{duration\}/i,I).replace(/\{sent\}/i,new%20Date(Q-z*1000).toLocaleString().replace(/.\d{4}/i,'').replace(/(\w{3})\w*/i,'$1')).replace(/\{unit\}/i,p[j]);
q.onmousedown=new%20Function('h.value=d.getElementById(\'I'+j+'\').value;');
}}}
Z();